package com.hb.study.jdk.enumtest;

/**
 * 测试枚举类
 *
 * @author Mr.Huang
 * @version v0.1, EnumTest.java, 2020/5/19 10:50, create by huangbiao.
 */
public enum EnumTest {

    ENUMTEST1("第一个对象") {
        @Override
        public void exec() {
            System.out.println(scale);
        }
    },
    ENUMTEST2("第二个对象") {
        @Override
        public void exec() {

        }
    };

    private String desc;

    EnumTest(String desc) {
        this.desc = desc;
    }

    public abstract void exec();

    protected String scale = "2";

}
